﻿<UserControl x:Class="OrgStructure.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    mc:Ignorable="d"
    d:DesignHeight="500" d:DesignWidth="680">

    <StackPanel Background="White">
        
        <StackPanel>
            <StackPanel Orientation="Horizontal" Margin="4" Background="#B3F2E62B">
                <ContentControl Content="Структура организации" />
                <!--<TextBlock Text="Current Url: " />
                <TextBlock Text="{Binding Source, ElementName=navFrame}" />-->
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <HyperlinkButton Name="hyperlink_all" Content="Все" Margin="4" TargetName="navFrame" NavigateUri="/Welcome.xaml" />
                <HyperlinkButton Name="hyperlink_shops" Content="Магазины" Margin="4" TargetName="navFrame" NavigateUri="/Page1.xaml" />
                <HyperlinkButton Name="hyperlink_office" Content="Офис" Margin="4" TargetName="navFrame" NavigateUri="/Page2.xaml" />
                <HyperlinkButton Name="hyperlink_search" Content="Поиск" Margin="4" TargetName="navFrame" NavigateUri="/Find.xaml" />
            </StackPanel>
        </StackPanel>

        <Grid Width="680" Height="500" HorizontalAlignment="Left">
            <Rectangle Stroke="DarkGray" StrokeThickness="1" />
            <navigation:Frame 
                x:Name="navFrame" Source="/Welcome.xaml" 
                Margin="0,0,0,0" 
                VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" />
        </Grid>

    </StackPanel>


</UserControl>
